<!DOCTYPE html>
<html> 
    <head>
        <meta charset="utf-8">
        <meta name="renderer" content="webkit">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>{$metaTitle|default='prototype'}-prototype后台管理系统</title>
        <link href="__STATIC__/font-awesome/css/font-awesome.css" rel="stylesheet">
        <!--<link href="__STATIC__/bootstrap/bootstrap.min.css" rel="stylesheet">-->
        <link href="//cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
        <link href="__CSS__/style.css" rel="stylesheet">
        <link href="__CSS__/animate.css" rel="stylesheet">
        {block name="css"}{/block}
        <script src="//cdn.bootcss.com/jquery/2.2.4/jquery.js"></script>
        <script src="//cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
    </head>
    <body class="">
        <div id="wrapper"> 
            <!-- 头部 -->
            <nav class="navbar-default navbar-static-side" role="navigation">
                <div class="sidebar-collapse">
                    <ul class="nav" id="side-menu">
                        <li class="nav-header text-align-center">
                            <div class="dropdown profile-element"> <span>
                                    <img alt="image" class="img-circle" src="{:portrait()}" width="64" height="64" />
                                </span>
                                <a data-toggle="dropdown" class="dropdown-toggle" href="#">
                                    <span class="clear"> 
                                        <span class="block m-t-xs"> 
                                            <strong class="font-bold">{:\\think\\Session::get('user_auth.username')}</strong>
                                        </span> 
                                        <span class="text-muted text-xs block">快捷菜单<b class="caret"></b></span>
                                    </span>
                                </a>
                                <ul class="dropdown-menu animated fadeInRight m-t-xs">
                                    <li><a href="{:\\think\\Url::build('User/portrait')}">修改头像</a>
                                    </li>
                                    <li><a href="#">个人资料(未开发)</a>
                                    </li>
                                    <li><a href="{:\\think\\Url::build('User/photoGallery')}">个人相册</a>
                                    </li>
                                    <li><a class="updateall" href="{:\\think\\Url::build('User/updateNickname')}">修改昵称</a>
                                    </li>
                                    <li><a class="updateall" href="{:\\think\\Url::build('User/updatePassword')}">修改密码</a>
                                    </li>
                                    <li class="divider"></li>
                                    <li><a href="{:\\think\\Url::build('Login/logout')}">安全退出</a>
                                    </li>
                                </ul>
                            </div>
                            <div class="logo-element">
                                7
                            </div>
                        </li>
                        </li>
                        {notempty name="systemMenus.main"}
                        {volist name="systemMenus.main" id="main"}
                        <li class="{$main.class|default=''}">
                            <a href="{:\\think\\Url::build($main['url']??null)}">
                                <i class="fa fa-sitemap"></i>
                                <span class="nav-label">{$main.title|default=''}</span>
                                {notempty name="main.class"}<span class="fa arrow m-l-xs"></span>{/notempty}
                            </a>
                            {notempty name="main.class"}
                            {block name='sidebar'}
                            {volist name="systemMenus.child" id="child"}
                            {notempty name="child"}
                            <ul class="nav nav-second-level">
                                <li>
                                    <a href="#">{$key}{notempty name="key"}<span class="fa arrow "></span>{/notempty}</a>
                                    <ul class="nav nav-third-level">
                                        {volist name="child" id="vo"}
                                        <li><a href="{:\\think\\Url::build($vo['url']??null)}">{$vo.title}</a></li>
                                        {/volist}
                                    </ul>
                                </li>
                            </ul>
                            {/notempty}
                            {/volist}
                            {/block}
                            {/notempty}
                        </li>
                        {/volist}
                        {/notempty} 
                        <li class="hidden">
                            <a href="#"><i class="fa fa-magic"></i> <span class="nav-label">一级菜单</span><span class="label label-warning pull-right">16</span></a>
                        </li>
                    </ul>
                </div>
            </nav>
            <!-- /头部 -->

            <!-- 主体 -->
            <div id="page-wrapper" class="gray-bg dashbard-1">
                <div class="row border-bottom">
                    <nav class="navbar navbar-static-top" role="navigation" style="margin-bottom: 0">
                        <div class="navbar-header">
                            <a class="navbar-minimalize minimalize-styl-2 btn btn-primary " href="#"><i class="fa fa-bars"></i> </a>
<!--                            <form role="search" class="navbar-form-custom" method="post" action="#">
                                <div class="form-group">
                                    <input type="text" placeholder="请输入您需要查找的内容...." class="form-control" name="top-search" id="top-search">
                                </div>
                            </form>-->
                        </div>
                        <ul class="nav navbar-top-links navbar-right">
                            <li>
                                <span class="m-r-sm text-muted welcome-message"><a href="{:\\think\\Url::build('Index/index')}" title="首页"><i class="fa fa-home"></i>首页</a></span>
                            </li>
<!--                            <li class="dropdown">
                                <a class="dropdown-toggle count-info" data-toggle="dropdown" href="#">
                                    <i class="fa fa-envelope"></i>  <span class="label label-warning">16</span>
                                </a>
                                <ul class="dropdown-menu dropdown-messages">
                                    <li>
                                        <div class="dropdown-messages-box">
                                            <a href="#" class="pull-left">
                                                <img alt="image" class="img-circle" src="{:portrait()}">
                                            </a>
                                            <div class="media-body">
                                                <small class="pull-right">46小时前</small>
                                                <strong>小四</strong> 项目已处理完结
                                                <br>
                                                <small class="text-muted">3天前 2014.11.8</small>
                                            </div>
                                        </div>
                                    </li>
                                    <li class="divider"></li>
                                    <li>
                                        <div class="dropdown-messages-box">
                                            <a href="#" class="pull-left">
                                                <img alt="image" class="img-circle" src="{:portrait()}">
                                            </a>
                                            <div class="media-body ">
                                                <small class="pull-right text-navy">25小时前</small>
                                                <strong>国民岳父</strong> 这是一条测试信息
                                                <br>
                                                <small class="text-muted">昨天</small>
                                            </div>
                                        </div>
                                    </li>
                                    <li class="divider"></li>
                                    <li>
                                        <div class="text-center link-block">
                                            <a href="#">
                                                <i class="fa fa-envelope"></i>  <strong> 查看所有消息</strong>
                                            </a>
                                        </div>
                                    </li>
                                </ul>
                            </li>-->
<!--                            <li class="dropdown">
                                <a class="dropdown-toggle count-info" data-toggle="dropdown" href="#">
                                    <i class="fa fa-bell"></i>  <span class="label label-primary">8</span>
                                </a>
                                <ul class="dropdown-menu dropdown-alerts">
                                    <li>
                                        <a href="#">
                                            <div>
                                                <i class="fa fa-envelope fa-fw"></i> 您有16条未读消息
                                                <span class="pull-right text-muted small">4分钟前</span>
                                            </div>
                                        </a>
                                    </li>
                                    <li class="divider"></li>
                                    <li>
                                        <a href="#">
                                            <div>
                                                <i class="fa fa-qq fa-fw"></i> 3条新回复
                                                <span class="pull-right text-muted small">12分钟钱</span>
                                            </div>
                                        </a>
                                    </li>
                                    <li class="divider"></li>
                                    <li>
                                        <div class="text-center link-block">
                                            <a href="#">
                                                <strong>查看所有 </strong>
                                                <i class="fa fa-angle-right"></i>
                                            </a>
                                        </div>
                                    </li>
                                </ul>
                            </li>-->
                            <li>
                                <a href="{:\\think\\Url::build('Login/logout')}">
                                    <i class="fa fa-sign-out"></i> 退出
                                </a>
                            </li>
                        </ul>
                    </nav>
                </div>
                {block name="body"}
                这是内容
                {/block}
                <!-- /主体 -->
                <!-- 底部 -->
                <div class="footer">
                    <div class="pull-right">
                        By：<a href="http://www.calm7.com" target="_blank">static7 blog</a>
                    </div>
                    <div>
                        <strong>Copyright</strong>  static7 &copy; 2016
                    </div>
                </div>
                <!-- /底部 -->
            </div>
        </div>
        <!--<script type="text/javascript"src="__STATIC__/jquery/jquery-2.1.1.min.js"></script>-->
        <!--<script type="text/javascript"src="__STATIC__/bootstrap/bootstrap.min.js"></script>-->
        <script type="text/javascript" src="__STATIC__/layer/layer.js"></script>
        <script type="text/javascript"src="__JS__/plugins/metisMenu/jquery.metisMenu.js"></script>
        <script type="text/javascript"src="__JS__/plugins/slimscroll/jquery.slimscroll.min.js"></script>
        <script type="text/javascript"src="__JS__/plugins/pace/pace.min.js"></script>
        <script type="text/javascript"src="__JS__/common.js"></script>
        <script type="text/javascript">
            $(".updateall").on('click', function () {
                var url = $(this).attr('href');
                $.get(url, function (str) {
                    if (str.code === 0) {
                        return alert_msg(str.msg);
                    }
                    layer.open({
                        type: 1,
                        title: "用户个人信息",
                        area: '410px',
                        content: str
                    });
                });
                return false;
            });
        </script>
        {block name="script"}{/block}

    </body>
</html>
